using System;
using System.Collections.Generic;
using System.Text;

namespace membership
{
    public class Role
    {
        private string _name;
        private List<Member> _members;

        public Role(string roleName)
        {
            _name = roleName;
        }

        public string Name {
            get
            {
                return _name;
            }
        }

        public void AddMember(Member memberToAdd)
        {
            if (null == _members)
            {
                _members = new List<Member>();
            }
            _members.Add(memberToAdd);
        }

        public List<Member> GetMembers()
        {
            return _members;
        }

    }
}
